package com.txl.mycamera;

import androidx.appcompat.app.AppCompatActivity;
import androidx.camera.core.CameraSelector;
import androidx.camera.core.CameraX;
import androidx.camera.core.ImageCapture;
import androidx.camera.extensions.BokehImageCaptureExtender;
import androidx.camera.extensions.ImageCaptureExtender;
import androidx.camera.lifecycle.ProcessCameraProvider;

import android.os.Bundle;
import android.view.WindowManager;

import com.google.common.util.concurrent.ListenableFuture;
import com.txl.mycamera.ui.view.CameraView;

import java.util.concurrent.ExecutionException;


public class MainActivity extends AppCompatActivity {


    CameraView mSurfaceView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
        setContentView(R.layout.activity_main);
        mSurfaceView = findViewById(R.id.cameraview);
    }
}